<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>应聘管理</title>

	<link rel="stylesheet" th:href="@{/layui/css/layui.css}">
	<link rel="stylesheet" type="text/css" media="all" th:href="@{/css/tyle.css}">
	<style type="text/css">
		body{
			background-color: #ffffff;
			padding: 20px
		}
	</style>
</head>
<body><!-- ctrl + F9  -->
<div th:each="user,i:${userJobList}">
  <fieldset class="layui-elem-field">
    <legend>
        <a th:href="'/user/user?id='+ ${user.uid}" th:text="${user.user.name}" style="font-size: 18px" target="_blank"></a>
    </legend>
    <div class="layui-field-box">
      <img th:src="'/user/img/'+ ${user.uid}" class="layui-circle" style="width: 60px;">
      <a style="margin-left: 10%" class="layui-btn layui-btn-sm layui-btn-normal jianli" th:href="'/my/self?id='+${user.uid}" target="_blank">查看ta的简历</a>

      <a class="layui-btn layui-btn-sm pingjia"  th:href="'/edit/editTop/'+${user.jid}+'/'+${user.uid}" target="_blank">发表用人评价</a>

      <div class="layui-form layui-form-pane">
        <div class="layui-form-item">
          <label class="layui-form-label">回复应聘</label>
          <div class="layui-input-block" style="width: 74%">
            <select name="state" th:class="${user.uid}"  lay-verify="required">
              <option value="" th:text="${user.state}"></option>
              <option value="被查看">被查看</option>
              <option value="初步筛选">初步筛选</option>
              <option value="面试通知">面试通知</option>
              <option value="不合适">不合适</option>
            </select>
          </div>
        </div>
        <button class="layui-btn layui-btn-sm huifu" th:onclick="'huifu('+${user.uid}+','+ ${user.jid}+')'" style="float: right;margin-right: 5%">确定回复</button>
        <br><br>
      </div>
    </div>
  </fieldset>
</div>
  <script th:src="@{/layui/layui.all.js}"></script>
  <script>
    var $ = layui.$;
    function huifu(uid,jid) {
        var state = $("."+uid).val();
        console.info(state);
        $.ajax({
            url:"/job/updataUJ/"+uid+'/'+jid,
            data:{"state":state},
            type:"post",
            success:function (result) {
                layer.msg(result);
            }
        })
    };
    </script>
  </body>
  </html>
